<%@ page import="com.service.PatientService" %>
<%@ page import="com.entity.RegisterDoc" %>
<%@ page import="com.entity.Patient" %><%--
  Created by IntelliJ IDEA.
  User: 95241
  Date: 2021/9/22
  Time: 23:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>诊断</title>

    <link rel="stylesheet" type="text/css" href="css/deal.css">
</head>
<%
    String registerId = (String) request.getAttribute("addId");
    System.out.println("JSP:"+registerId+" ");
    PatientService patientService = new PatientService();
    RegisterDoc registerDoc = patientService.findRegisterDocById(registerId);
    if(registerDoc==null)
        System.out.printf("JSP is null");
//    request.setAttribute("dealRegisterDoc",registerDoc);
%>
<body style="background-color: #EBECF0">
<br>
<br>

<h2 style="margin-left: 15%">诊断</h2>
<br>
<table style="margin-left: 15%">
    <tr>
        <td><b>病人姓名：</b></td><td><%=registerDoc.getPatientName()%></td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td><td><b>医生姓名：</b></td><td><%=registerDoc.getDoctorName()%></td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td><td><b>日期：</b></td><td><%=registerDoc.getCreatDateFormat()%></td>
    </tr>
</table>
<br>
<br>
<hr align=center width="70%" SIZE=3>
<br>
<br>

<center>
    <form action="doctorServlet">
        <input type="hidden" name="registerId" value="<%=registerId%>">
        <input type="hidden" name="skip" value="addDeal">
        <textarea name="ill" style="width: 60%;height: 200px;"></textarea>
        <br>
        <br>
        <a href="doctorServlet?skip=addDrugFile&registerId=<%=registerId%>"><input  type = "button" value = "开药"  class="sub"></a>&nbsp;&nbsp;&nbsp;&nbsp;
        <input type="submit" value="完成"  class="sub">

    </form>
</center>



</body>
</html>
